package indi.kider.server.apartment.mapper;

import indi.kider.common.model.apartment.Community;
import indi.kider.common.model.employee.TenantQuery;
import indi.kider.server.apartment.model.CommunityTitle;
import indi.kider.server.apartment.model.HousesCommunityQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CommunityMapper extends Mapper<Community> {

    List<Community> selectAllGroupByCity(@Param("enterpriseId") Long enterpriseId);

    Integer selectCommunityHasUsed(@Param("communityId") Long communityId);
    Integer selectCommunityHasHouses(@Param("communityId") Long communityId);
    List<CommunityTitle> getCommunityTitleList(HousesCommunityQuery communityQuery);
    Integer getTenantSizeByCommunity( TenantQuery tenantQuery);
}